﻿using MiniFox.Components;

namespace MiniFox.Platform.OAuth2.Providers
{
    /// <summary>
    /// 
    /// </summary>
    [AutoRegister]
    public interface IPassportTokenProvider
    {
        /// <summary>
        /// 通过授权票据ID，提取通行证令牌(passport token)
        /// </summary>
        /// <param name="authTicketID"></param>
        /// <returns></returns>
        PassportToken GetPassportToken(string authTicketID);
        /// <summary>
        /// 禁用指定token
        /// </summary>
        /// <param name="passportToken"></param>
        void DisablePassportToken(PassportToken passportToken);
    }
}
